using System;
using System.Linq;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using Widgetsphere.Autos.EFDAL;
using System.Text.RegularExpressions;
using System.Linq.Expressions;
using System.Data.Entity;
using System.Data.Linq;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.Core.Objects.DataClasses;

namespace Widgetsphere.Autos.EFDAL.Entity
{
	/// <summary>
	/// The collection to hold 'BulletPoint' entities
	/// </summary>
	[DataContract]
	[Serializable]
	[System.Data.Linq.Mapping.Table(Name = "BulletPoint")]
	[System.CodeDom.Compiler.GeneratedCode("nHydrateModelGenerator", "5.3.0")]
	[EdmEntityTypeAttribute(NamespaceName = "Widgetsphere.Autos.EFDAL.Entity", Name = "BulletPoint")]
	[nHydrate.EFCore.Attributes.FieldNameConstantsAttribute(typeof(Widgetsphere.Autos.EFDAL.Entity.BulletPoint.FieldNameConstants))]
	[System.ComponentModel.DataAnnotations.MetadataType(typeof(Widgetsphere.Autos.EFDAL.Interfaces.Entity.Metadata.BulletPointMetadata))]
	[nHydrate.EFCore.Attributes.EntityMetadata("BulletPoint", false, true, true, true, "", true, false, false, "dbo")]
	public partial class BulletPoint : nHydrate.EFCore.DataAccess.BaseEntity, nHydrate.EFCore.DataAccess.IBusinessObject, Widgetsphere.Autos.EFDAL.IEntityWithContext, System.ComponentModel.IDataErrorInfo, Widgetsphere.Autos.EFDAL.Interfaces.Entity.IBulletPoint, System.ICloneable, System.IEquatable<Widgetsphere.Autos.EFDAL.Interfaces.Entity.IBulletPoint>, nHydrate.EFCore.DataAccess.IAuditable
	{
		#region FieldNameConstants Enumeration

		/// <summary>
		/// Enumeration to define each property that maps to a database field for the 'BulletPoint' table.
		/// </summary>
		public enum FieldNameConstants
		{
			/// <summary>
			/// Field mapping for the 'BulletPointId' property
			/// </summary>
			[nHydrate.EFCore.Attributes.PrimaryKeyAttribute()]
			[System.ComponentModel.ReadOnlyAttribute(true)]
			[System.ComponentModel.Description("Field mapping for the 'BulletPointId' property")]
			BulletPointId,
			/// <summary>
			/// Field mapping for the 'ListingId' property
			/// </summary>
			[System.ComponentModel.Description("Field mapping for the 'ListingId' property")]
			ListingId,
			/// <summary>
			/// Field mapping for the 'Text' property
			/// </summary>
			[System.ComponentModel.Description("Field mapping for the 'Text' property")]
			Text,
			/// <summary>
			/// Field mapping for the 'CreatedBy' property
			/// </summary>
			[System.ComponentModel.Description("Field mapping for the 'CreatedBy' property")]
			CreatedBy,
			/// <summary>
			/// Field mapping for the 'CreatedDate' property
			/// </summary>
			[System.ComponentModel.Description("Field mapping for the 'CreatedDate' property")]
			CreatedDate,
			/// <summary>
			/// Field mapping for the 'ModifiedBy' property
			/// </summary>
			[System.ComponentModel.Description("Field mapping for the 'ModifiedBy' property")]
			ModifiedBy,
			/// <summary>
			/// Field mapping for the 'ModifiedDate' property
			/// </summary>
			[System.ComponentModel.Description("Field mapping for the 'ModifiedDate' property")]
			ModifiedDate,
		}
		#endregion

		#region Constructors

		/// <summary>
		/// Initializes a new instance of the Widgetsphere.Autos.EFDAL.Entity.BulletPoint class
		/// </summary>
		public BulletPoint()
		{

		}

		#endregion

		#region Properties

		/// <summary>
		/// The property that maps back to the database 'BulletPoint.BulletPointId' field.
		/// </summary>
		/// <remarks>Field: [BulletPoint].[BulletPointId], Not Nullable, Primary Key, Unique, Indexed</remarks>
		[DataMember]
		[System.ComponentModel.Browsable(true)]
		[EdmScalarPropertyAttribute(EntityKeyProperty = true, IsNullable = false)]
		[System.ComponentModel.DisplayName("BulletPointId")]
		[System.ComponentModel.DataAnnotations.Key()]
		[System.ComponentModel.ReadOnly(true)]
		[System.Diagnostics.DebuggerNonUserCode]
		[System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
		public virtual int BulletPointId
		{
			get { return _bulletPointId; }
			set
			{
				var eventArg = new nHydrate.EFCore.EventArgs.ChangingEventArgs<int>(value, "BulletPointId");
				this.OnPropertyChanging(eventArg);
				if (eventArg.Cancel) return;
				_bulletPointId = eventArg.Value;
				this.OnPropertyChanged(new PropertyChangedEventArgs("BulletPointId"));
			}
		}

		/// <summary>
		/// The property that maps back to the database 'BulletPoint.ListingId' field.
		/// </summary>
		/// <remarks>Field: [BulletPoint].[ListingId], Not Nullable, Indexed</remarks>
		[DataMember]
		[System.ComponentModel.Browsable(true)]
		[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = false)]
		[System.ComponentModel.DisplayName("ListingId")]
		[System.Diagnostics.DebuggerNonUserCode]
		public virtual int ListingId
		{
			get { return _listingId; }
			set
			{
				var eventArg = new nHydrate.EFCore.EventArgs.ChangingEventArgs<int>(value, "ListingId");
				this.OnPropertyChanging(eventArg);
				if (eventArg.Cancel) return;
				_listingId = eventArg.Value;
				this.OnPropertyChanged(new PropertyChangedEventArgs("ListingId"));
			}
		}

		/// <summary>
		/// The property that maps back to the database 'BulletPoint.Text' field.
		/// </summary>
		/// <remarks>Field: [BulletPoint].[Text], Field Length: 500, Not Nullable, Indexed</remarks>
		[DataMember]
		[System.ComponentModel.Browsable(true)]
		[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = false)]
		[System.ComponentModel.DisplayName("Text")]
		[System.Diagnostics.DebuggerNonUserCode]
		[StringLength(500)]
		public virtual string Text
		{
			get { return _text; }
			set
			{
				var eventArg = new nHydrate.EFCore.EventArgs.ChangingEventArgs<string>(value, "Text");
				this.OnPropertyChanging(eventArg);
				if (eventArg.Cancel) return;
				_text = eventArg.Value;
				this.OnPropertyChanged(new PropertyChangedEventArgs("Text"));
			}
		}

		/// <summary>
		/// The audit field for the 'Created By' parameter.
		/// </summary>
		[System.ComponentModel.Browsable(false)]
		[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = true)]
		[DataMemberAttribute()]
		[System.Diagnostics.DebuggerNonUserCode]
		public virtual string CreatedBy
		{
			get { return _createdby; }
			protected internal set
			{
				var eventArg = new nHydrate.EFCore.EventArgs.ChangingEventArgs<string>(value, "CreatedBy");
				this.OnPropertyChanging(eventArg);
				if (eventArg.Cancel) return;
				_createdby = eventArg.Value;
				this.OnPropertyChanged(new PropertyChangedEventArgs("CreatedBy"));
			}
		}

		/// <summary />
		protected string _createdby;

		/// <summary>
		/// The audit field for the 'Created Date' parameter.
		/// </summary>
		[System.ComponentModel.Browsable(false)]
		[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = true)]
		[DataMemberAttribute()]
		[System.Diagnostics.DebuggerNonUserCode]
		public virtual DateTime? CreatedDate
		{
			get { return _createddate; }
			protected internal set
			{
				var eventArg = new nHydrate.EFCore.EventArgs.ChangingEventArgs<DateTime?>(value, "CreatedDate");
				this.OnPropertyChanging(eventArg);
				if (eventArg.Cancel) return;
				_createddate = eventArg.Value;
				this.OnPropertyChanged(new PropertyChangedEventArgs("CreatedDate"));
			}
		}

		/// <summary />
		protected DateTime? _createddate;

		/// <summary>
		/// The audit field for the 'Modified By' parameter.
		/// </summary>
		[System.ComponentModel.Browsable(false)]
		[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = true)]
		[DataMemberAttribute()]
		[System.Diagnostics.DebuggerNonUserCode]
		public virtual string ModifiedBy
		{
			get { return _modifiedby; }
			protected internal set
			{
				var eventArg = new nHydrate.EFCore.EventArgs.ChangingEventArgs<string>(value, "ModifiedBy");
				this.OnPropertyChanging(eventArg);
				if (eventArg.Cancel) return;
				_modifiedby = eventArg.Value;
				this.OnPropertyChanged(new PropertyChangedEventArgs("ModifiedBy"));
			}
		}

		/// <summary />
		protected string _modifiedby;

		/// <summary>
		/// The audit field for the 'Modified Date' parameter.
		/// </summary>
		[System.ComponentModel.Browsable(false)]
		[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = true)]
		[DataMemberAttribute()]
		[System.Diagnostics.DebuggerNonUserCode]
		public virtual DateTime? ModifiedDate
		{
			get { return _modifieddate; }
			protected internal set
			{
				var eventArg = new nHydrate.EFCore.EventArgs.ChangingEventArgs<DateTime?>(value, "ModifiedDate");
				this.OnPropertyChanging(eventArg);
				if (eventArg.Cancel) return;
				_modifieddate = eventArg.Value;
				this.OnPropertyChanged(new PropertyChangedEventArgs("ModifiedDate"));
			}
		}

		/// <summary />
		protected DateTime? _modifieddate;

		/// <summary>
		/// The audit field for the 'Timestamp' parameter.
		/// </summary>
		[System.ComponentModel.Browsable(false)]
		[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = true)]
		[DataMemberAttribute()]
		[System.Diagnostics.DebuggerNonUserCode]
		public virtual byte[] TimeStamp
		{
			get { return _timestamp; }
			protected internal set
			{
				var eventArg = new nHydrate.EFCore.EventArgs.ChangingEventArgs<byte[]>(value, "TimeStamp");
				this.OnPropertyChanging(eventArg);
				if (eventArg.Cancel) return;
				_timestamp = eventArg.Value;
				this.OnPropertyChanged(new PropertyChangedEventArgs("TimeStamp"));
			}
		}

		/// <summary />
		protected byte[] _timestamp;

		#endregion

		#region Property Holders

		/// <summary />
		protected int _bulletPointId;
		/// <summary />
		protected int _listingId;
		/// <summary />
		protected string _text;

		#endregion

		#region GetMaxLength

		/// <summary>
		/// Gets the maximum size of the field value.
		/// </summary>
		public static int GetMaxLength(FieldNameConstants field)
		{
			switch (field)
			{
				case FieldNameConstants.BulletPointId:
					return 0;
				case FieldNameConstants.ListingId:
					return 0;
				case FieldNameConstants.Text:
					return 500;
			}
			return 0;
		}

		int nHydrate.EFCore.DataAccess.IReadOnlyBusinessObject.GetMaxLength(Enum field)
		{
			return GetMaxLength((FieldNameConstants)field);
		}

		#endregion

		#region GetFieldNameConstants

		System.Type nHydrate.EFCore.DataAccess.IReadOnlyBusinessObject.GetFieldNameConstants()
		{
			return typeof(FieldNameConstants);
		}

		#endregion

		#region GetFieldType

		/// <summary>
		/// Gets the system type of a field on this object
		/// </summary>
		public static System.Type GetFieldType(FieldNameConstants field)
		{
			if (field.GetType() != typeof(FieldNameConstants))
				throw new Exception("The '" + field.GetType().ReflectedType.ToString() + ".FieldNameConstants' value is not valid. The field parameter must be of type 'Widgetsphere.Autos.EFDAL.Entity.BulletPoint.FieldNameConstants'.");

			switch ((FieldNameConstants)field)
			{
				case FieldNameConstants.BulletPointId: return typeof(int);
				case FieldNameConstants.ListingId: return typeof(int);
				case FieldNameConstants.Text: return typeof(string);
			}
			return null;
		}

		System.Type nHydrate.EFCore.DataAccess.IReadOnlyBusinessObject.GetFieldType(Enum field)
		{
			if (field.GetType() != typeof(FieldNameConstants))
				throw new Exception("The '" + field.GetType().ReflectedType.ToString() + ".FieldNameConstants' value is not valid. The field parameter must be of type 'Widgetsphere.Autos.EFDAL.Entity.BulletPoint.FieldNameConstants'.");

			return GetFieldType((Widgetsphere.Autos.EFDAL.Entity.BulletPoint.FieldNameConstants)field);
		}

		#endregion

		#region Get/Set Value

		object nHydrate.EFCore.DataAccess.IReadOnlyBusinessObject.GetValue(System.Enum field)
		{
			return ((nHydrate.EFCore.DataAccess.IReadOnlyBusinessObject)this).GetValue(field, null);
		}

		object nHydrate.EFCore.DataAccess.IReadOnlyBusinessObject.GetValue(System.Enum field, object defaultValue)
		{
			if (field.GetType() != typeof(FieldNameConstants))
				throw new Exception("The '" + field.GetType().ReflectedType.ToString() + ".FieldNameConstants' value is not valid. The field parameter must be of type '" + this.GetType().ToString() + ".FieldNameConstants'.");
			return this.GetValue((FieldNameConstants)field, defaultValue);
		}

		void nHydrate.EFCore.DataAccess.IBusinessObject.SetValue(System.Enum field, object newValue)
		{
			if (field.GetType() != typeof(FieldNameConstants))
				throw new Exception("The '" + field.GetType().ReflectedType.ToString() + ".FieldNameConstants' value is not valid. The field parameter must be of type '" + this.GetType().ToString() + ".FieldNameConstants'.");
			this.SetValue((FieldNameConstants)field, newValue);
		}

		#endregion

		#region PrimaryKey

		/// <summary>
		/// Hold the primary key for this object
		/// </summary>
		protected nHydrate.EFCore.DataAccess.IPrimaryKey _primaryKey = null;
		nHydrate.EFCore.DataAccess.IPrimaryKey nHydrate.EFCore.DataAccess.IReadOnlyBusinessObject.PrimaryKey
		{
			get { return null; }
		}

		#endregion

		#region Clone

		/// <summary>
		/// Creates a shallow copy of this object
		/// </summary>
		public virtual object Clone()
		{
			return Widgetsphere.Autos.EFDAL.Entity.BulletPoint.Clone(this);
		}

		/// <summary>
		/// Creates a shallow copy of this object with defined, default values and new PK
		/// </summary>
		public virtual object CloneAsNew()
		{
			var item = Widgetsphere.Autos.EFDAL.Entity.BulletPoint.Clone(this);
			item._bulletPointId = 0;
			return item;
		}

		/// <summary>
		/// Creates a shallow copy of this object
		/// </summary>
		public static BulletPoint Clone(Widgetsphere.Autos.EFDAL.Interfaces.Entity.IBulletPoint item)
		{
			var newItem = new BulletPoint();
			newItem.BulletPointId = item.BulletPointId;
			newItem.ListingId = item.ListingId;
			newItem.Text = item.Text;
			newItem.CreatedDate = item.CreatedDate;
			newItem.CreatedBy = item.CreatedBy;
			newItem.ModifiedDate = item.ModifiedDate;
			newItem.ModifiedBy = item.ModifiedBy;
			return newItem;
		}

		#endregion

		#region IsEquivalent

		/// <summary>
		/// Determines if all of the fields for the specified object exactly matches the current object.
		/// </summary>
		/// <param name="item">The object to compare</param>
		public override bool IsEquivalent(nHydrate.EFCore.DataAccess.INHEntityObject item)
		{
			return ((System.IEquatable<Widgetsphere.Autos.EFDAL.Interfaces.Entity.IBulletPoint>)this).Equals(item as Widgetsphere.Autos.EFDAL.Interfaces.Entity.IBulletPoint);
		}

		#endregion

		#region GetValue

		/// <summary>
		/// Gets the value of one of this object's properties.
		/// </summary>
		public object GetValue(FieldNameConstants field)
		{
			return GetValue(field, null);
		}

		/// <summary>
		/// Gets the value of one of this object's properties.
		/// </summary>
		public object GetValue(FieldNameConstants field, object defaultValue)
		{
			if (field == FieldNameConstants.BulletPointId)
				return this.BulletPointId;
			if (field == FieldNameConstants.ListingId)
				return this.ListingId;
			if (field == FieldNameConstants.Text)
				return this.Text;
			if (field == FieldNameConstants.CreatedBy)
				return ((this.CreatedBy == null) ? defaultValue : this.CreatedBy);
			if (field == FieldNameConstants.CreatedDate)
				return ((this.CreatedDate == null) ? defaultValue : this.CreatedDate);
			if (field == FieldNameConstants.ModifiedBy)
				return ((this.ModifiedBy == null) ? defaultValue : this.ModifiedBy);
			if (field == FieldNameConstants.ModifiedDate)
				return ((this.ModifiedDate == null) ? defaultValue : this.ModifiedDate);
			throw new Exception("Field '" + field.ToString() + "' not found!");
		}

		#endregion

		#region SetValue

		/// <summary>
		/// Assigns a value to a field on this object.
		/// </summary>
		/// <param name="field">The field to set</param>
		/// <param name="newValue">The new value to assign to the field</param>
		public virtual void SetValue(FieldNameConstants field, object newValue)
		{
			SetValue(field, newValue, false);
		}

		/// <summary>
		/// Assigns a value to a field on this object.
		/// </summary>
		/// <param name="field">The field to set</param>
		/// <param name="newValue">The new value to assign to the field</param>
		/// <param name="fixLength">Determines if the length should be truncated if too long. When false, an error will be raised if data is too large to be assigned to the field.</param>
		public virtual void SetValue(FieldNameConstants field, object newValue, bool fixLength)
		{
			if (field == FieldNameConstants.BulletPointId)
			{
				throw new Exception("Field '" + field.ToString() + "' is a primary key and cannot be set!");
			}
			else if (field == FieldNameConstants.ListingId)
			{
				this.ListingId = GlobalValues.SetValueHelperIntNotNullableInternal(newValue, "Field 'ListingId' does not allow null values!");
			}
			else if (field == FieldNameConstants.Text)
			{
				this.Text = GlobalValues.SetValueHelperInternal((string)newValue, fixLength, GetMaxLength(field));
			}
			else
				throw new Exception("Field '" + field.ToString() + "' not found!");
		}

		#endregion

		#region Navigation Properties

		/// <summary>
		/// The navigation definition for walking Listing->BulletPoint
		/// </summary>
		[DataMember]
		public virtual Listing Listing { get; set; }

		Widgetsphere.Autos.EFDAL.Interfaces.Entity.IListing Widgetsphere.Autos.EFDAL.Interfaces.Entity.IBulletPoint.Listing
		{
			get { return this.Listing; }
			set { this.Listing = (Widgetsphere.Autos.EFDAL.Entity.Listing)value; }
		}

		#endregion

		#region Static SQL Methods

		internal static string GetFieldAliasFromFieldNameSqlMapping(string alias)
		{
			alias = alias.Replace("[", string.Empty).Replace("]", string.Empty);
			switch (alias.ToLower())
			{
				case "bulletpointid": return "bulletpointid";
				case "listingid": return "listingid";
				case "text": return "text";
				case "createddate": return "createddate";
				case "createdby": return "createdby";
				case "modifieddate": return "modifieddate";
				case "modifiedby": return "modifiedby";
				case "timestamp": return "timestamp";
				default: throw new Exception("The select clause is not valid.");
			}
		}

		internal static string GetTableFromFieldAliasSqlMapping(string alias)
		{
			switch (alias.ToLower())
			{
				case "bulletpointid": return "BulletPoint";
				case "listingid": return "BulletPoint";
				case "text": return "BulletPoint";
				case "createdby": return "BulletPoint";
				case "createddate": return "BulletPoint";
				case "modifiedby": return "BulletPoint";
				case "modifieddate": return "BulletPoint";
				case "timestamp": return "BulletPoint";
				default: throw new Exception("The select clause is not valid.");
			}
		}

		internal static string GetTableFromFieldNameSqlMapping(string field)
		{
			switch (field.ToLower())
			{
				case "bulletpointid": return "BulletPoint";
				case "listingid": return "BulletPoint";
				case "text": return "BulletPoint";
				case "createdby": return "BulletPoint";
				case "createddate": return "BulletPoint";
				case "modifiedby": return "BulletPoint";
				case "modifieddate": return "BulletPoint";
				case "timestamp": return "BulletPoint";
				default: throw new Exception("The select clause is not valid.");
			}
		}

		internal static string GetRemappedLinqSql(string sql, string parentAlias, LinqSQLFromClauseCollection childTables)
		{
			sql = System.Text.RegularExpressions.Regex.Replace(sql, "\\[" + parentAlias + "\\]\\.\\[bulletpointid\\]", "[" + childTables.GetBaseAliasTable(parentAlias, "BulletPoint") + "].[bulletpointid]", RegexOptions.IgnoreCase);
			sql = System.Text.RegularExpressions.Regex.Replace(sql, "\\[" + parentAlias + "\\]\\.\\[listingid\\]", "[" + childTables.GetBaseAliasTable(parentAlias, "BulletPoint") + "].[listingid]", RegexOptions.IgnoreCase);
			sql = System.Text.RegularExpressions.Regex.Replace(sql, "\\[" + parentAlias + "\\]\\.\\[text\\]", "[" + childTables.GetBaseAliasTable(parentAlias, "BulletPoint") + "].[text]", RegexOptions.IgnoreCase);
			sql = System.Text.RegularExpressions.Regex.Replace(sql, "\\[" + parentAlias + "\\]\\.\\[createdby\\]", "[" + childTables.GetBaseAliasTable(parentAlias, "BulletPoint") + "].[createdby]", RegexOptions.IgnoreCase);
			sql = System.Text.RegularExpressions.Regex.Replace(sql, "\\[" + parentAlias + "\\]\\.\\[createddate\\]", "[" + childTables.GetBaseAliasTable(parentAlias, "BulletPoint") + "].[createddate]", RegexOptions.IgnoreCase);
			sql = System.Text.RegularExpressions.Regex.Replace(sql, "\\[" + parentAlias + "\\]\\.\\[modifiedby\\]", "[" + childTables.GetBaseAliasTable(parentAlias, "BulletPoint") + "].[modifiedby]", RegexOptions.IgnoreCase);
			sql = System.Text.RegularExpressions.Regex.Replace(sql, "\\[" + parentAlias + "\\]\\.\\[modifieddate\\]", "[" + childTables.GetBaseAliasTable(parentAlias, "BulletPoint") + "].[modifieddate]", RegexOptions.IgnoreCase);
			sql = System.Text.RegularExpressions.Regex.Replace(sql, "\\[" + parentAlias + "\\]\\.\\[timestamp\\]", "[" + childTables.GetBaseAliasTable(parentAlias, "BulletPoint") + "].[timestamp]", RegexOptions.IgnoreCase);
			return sql;
		}

		#endregion

		#region DeleteData

		/// <summary>
		/// Delete all records that match a where condition
		/// </summary>
		/// <param name="where">The expression that determines the records deleted</param>
		/// <returns>The number of rows deleted</returns>
		public static int DeleteData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where)
		{
			return DeleteData(where, new nHydrate.EFCore.DataAccess.QueryOptimizer(), new ContextStartup(null), Widgetsphere.Autos.EFDAL.AutosEntities.GetConnectionString());
		}

		/// <summary>
		/// Delete all records that match a where condition
		/// </summary>
		/// <param name="where">The expression that determines the records deleted</param>
		/// <param name="optimizer">The optimization object to use for running queries</param>
		/// <returns>The number of rows deleted</returns>
		public static int DeleteData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, nHydrate.EFCore.DataAccess.QueryOptimizer optimizer)
		{
			return DeleteData(where, optimizer, new ContextStartup(null), Widgetsphere.Autos.EFDAL.AutosEntities.GetConnectionString());
		}

		/// <summary>
		/// Delete all records that match a where condition
		/// </summary>
		/// <param name="where">The expression that determines the records deleted</param>
		/// <param name="connectionString">The database connection string to use for this access</param>
		/// <returns>The number of rows deleted</returns>
		public static int DeleteData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, string connectionString)
		{
			return DeleteData(where, new nHydrate.EFCore.DataAccess.QueryOptimizer(), new ContextStartup(null), connectionString);
		}

		/// <summary>
		/// Delete all records that match a where condition
		/// </summary>
		/// <param name="where">The expression that determines the records deleted</param>
		/// <param name="optimizer">The optimization object to use for running queries</param>
		/// <param name="startup">The startup options</param>
		/// <param name="connectionString">The database connection string to use for this access</param>
		/// <returns>The number of rows deleted</returns>
		public static int DeleteData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, nHydrate.EFCore.DataAccess.QueryOptimizer optimizer, ContextStartup startup, string connectionString)
		{
			if (optimizer == null)
				optimizer = new nHydrate.EFCore.DataAccess.QueryOptimizer();
				if (startup == null) startup = new ContextStartup(null);

			using (var connection = Widgetsphere.Autos.EFDAL.DBHelper.GetConnection(Widgetsphere.Autos.EFDAL.Util.StripEFCS2Normal(connectionString)))
			{
				using (var dc = new DataContext(connection))
				{
					var template = dc.GetTable<Widgetsphere.Autos.EFDAL.BulletPointQuery>();
					using (var cmd = nHydrate.EFCore.DataAccess.BusinessEntityQuery.GetCommand<Widgetsphere.Autos.EFDAL.BulletPointQuery>(dc, template, where))
					{
						if (startup.CommandTimeout != null && startup.CommandTimeout > 0) cmd.CommandTimeout = startup.CommandTimeout.Value;
						else cmd.CommandTimeout = 30;

						var parser = LinqSQLParser.Create(cmd.CommandText, LinqSQLParser.ObjectTypeConstants.Table);
						var sql = "CREATE TABLE #t ([BulletPointId] [Int])";
						sql += "INSERT INTO #t ([BulletPointId])";
						sql += "SELECT [t0].[BulletPointId] #t\r\n";
						sql += parser.GetFromClause(optimizer) + "\r\n";
						sql += parser.GetWhereClause();
						sql += "\r\n";

						var noLock = string.Empty;
						noLock = (optimizer.NoLocking ? "WITH (NOLOCK) " : string.Empty);
						sql += "DELETE [BulletPoint] FROM [dbo].[BulletPoint] " + noLock + "INNER JOIN #t ON [dbo].[BulletPoint].[BulletPointId] = #t.[BulletPointId]\r\n";
						sql += ";select @@rowcount";
						if (startup.IsAdmin) sql = LinqSQLParser.RemapTenantToAdminSql(sql);
						sql = "set ansi_nulls off;" + sql;
						cmd.CommandText = sql;
						dc.Connection.Open();
						var startTime = DateTime.Now;
						object p = cmd.ExecuteScalar();
						var endTime = DateTime.Now;
						optimizer.TotalMilliseconds = (long)endTime.Subtract(startTime).TotalMilliseconds;
						dc.Connection.Close();
						return (int)p;
					}
				}
			}
		}

		#endregion

		#region UpdateData

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, int>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, int newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, int>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, int?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, int? newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, int?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, int>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, int newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, int>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, int?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, int? newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, int?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, int>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, int newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, int>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, int?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, int? newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, int?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Single>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Single newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Single>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Single?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Single? newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Single?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Single>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Single newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Single>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Single?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Single? newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Single?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Single>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Single newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Single>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Single?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Single? newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Single?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, decimal newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, decimal? newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, decimal newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, decimal? newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, decimal newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, decimal? newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, decimal?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, double>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, double newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, double>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, double?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, double? newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, double?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, double>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, double newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, double>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, double?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, double? newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, double?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, double>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, double newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, double>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, double?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, double? newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, double?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, short>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, short newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, short>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, short?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, short? newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, short?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, short>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, short newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, short>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, short?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, short? newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, short?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, short>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, short newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, short>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, short?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, short? newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, short?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, string>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, string newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, string>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, string>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, string newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, string>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, string>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, string newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, string>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, DateTime newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, DateTime? newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, DateTime newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, DateTime? newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, DateTime newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, DateTime? newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, DateTime?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, bool newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, bool? newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, bool?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, bool newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, bool? newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, bool?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, bool newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, bool? newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, bool?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Guid newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Guid? newValue)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Guid newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connectionString">The database connection string</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Guid? newValue, string connectionString)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, connectionString);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Guid newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		/// <summary>
		/// Update the specified field that matches the Where expression with the new data value
		/// </summary>
		/// <param name="select">The field to update</param>
		/// <param name="where">The expression that determines the records selected</param>
		/// <param name="newValue">The new value to set the specified field in all matching records</param>
		/// <param name="connection">An open database connection</param>
		/// <param name="transaction">The database connection transaction</param>
		/// <returns>The number of records affected</returns>
		public static int UpdateData(Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid?>> select, Expression<Func<Widgetsphere.Autos.EFDAL.BulletPointQuery, bool>> where, Guid? newValue, System.Data.IDbConnection connection, System.Data.Common.DbTransaction transaction)
		{
			return BusinessObjectQuery<Widgetsphere.Autos.EFDAL.Entity.BulletPoint, Widgetsphere.Autos.EFDAL.BulletPointQuery, Guid?>.UpdateData(select, where, newValue, "BulletPoint", GetDatabaseFieldName, true, null, connection, transaction);
		}

		#endregion

		#region GetDatabaseFieldName

		/// <summary>
		/// Returns the actual database name of the specified field.
		/// </summary>
		internal static string GetDatabaseFieldName(BulletPoint.FieldNameConstants field)
		{
			return GetDatabaseFieldName(field.ToString());
		}

		/// <summary>
		/// Returns the actual database name of the specified field.
		/// </summary>
		internal static string GetDatabaseFieldName(string field)
		{
			switch (field)
			{
				case "BulletPointId": return "BulletPointId";
				case "ListingId": return "ListingId";
				case "Text": return "Text";
				case "CreatedBy": return "CreatedBy";
				case "CreatedDate": return "CreatedDate";
				case "ModifiedBy": return "ModifiedBy";
				case "ModifiedDate": return "ModifiedDate";
				case "TimeStamp": return "TimeStamp";
			}
			return string.Empty;
		}

		#endregion

		#region Context

		AutosEntities IEntityWithContext.Context
		{
			get { return _internalContext; }
			set { _internalContext = value; }
		}
		private AutosEntities _internalContext = null;

		#endregion

		#region Auditing
		string nHydrate.EFCore.DataAccess.IAuditable.CreatedBy
		{
			get { return this.CreatedBy; }
		}

		System.DateTime? nHydrate.EFCore.DataAccess.IAuditable.CreatedDate
		{
			get { return this.CreatedDate; }
		}

		bool nHydrate.EFCore.DataAccess.IAuditable.IsCreateAuditImplemented
		{
			get { return true; }
		}

		bool nHydrate.EFCore.DataAccess.IAuditable.IsModifyAuditImplemented
		{
			get { return true; }
		}

		bool nHydrate.EFCore.DataAccess.IAuditable.IsTimestampAuditImplemented
		{
			get { return true; }
		}

		string nHydrate.EFCore.DataAccess.IAuditable.ModifiedBy
		{
			get { return this.ModifiedBy; }
		}

		System.DateTime? nHydrate.EFCore.DataAccess.IAuditable.ModifiedDate
		{
			get { return this.ModifiedDate; }
		}

		byte[] nHydrate.EFCore.DataAccess.IAuditable.TimeStamp
		{
			get { return this.TimeStamp; }
		}

		internal virtual void ResetModifiedBy(string modifier)
		{
			if (this.ModifiedBy != modifier)
				this.ModifiedBy = modifier;
		}

		internal virtual void ResetCreatedBy(string modifier)
		{
			if (this.CreatedBy != modifier)
				this.CreatedBy = modifier;
			this.ResetModifiedBy(modifier);
		}
		#endregion

		#region Equals
		/// <summary>
		/// Compares two objects of 'BulletPoint' type and determines if all properties match
		/// </summary>
		/// <returns>True if all properties match, false otherwise</returns>
		bool System.IEquatable<Widgetsphere.Autos.EFDAL.Interfaces.Entity.IBulletPoint>.Equals(Widgetsphere.Autos.EFDAL.Interfaces.Entity.IBulletPoint other)
		{
			return this.Equals(other);
		}

		/// <summary>
		/// Compares two objects of 'BulletPoint' type and determines if all properties match
		/// </summary>
		/// <returns>True if all properties match, false otherwise</returns>
		public override bool Equals(object obj)
		{
			var other = obj as Widgetsphere.Autos.EFDAL.Entity.BulletPoint;
			if (other == null) return false;
			return (
				other.BulletPointId == this.BulletPointId &&
				other.ListingId == this.ListingId &&
				other.Text == this.Text
				);
		}

		/// <summary>
		/// Serves as a hash function for this type.
		/// </summary>
		public override int GetHashCode()
		{
			return base.GetHashCode();
		}

		#endregion

		#region IDataErrorInfo
		/// <summary />
		string System.ComponentModel.IDataErrorInfo.Error
		{
			get { return this.GetObjectDataErrorInfo(); }
		}

		/// <summary />
		/// <param name="columnName"></param>
		/// <returns></returns>
		string System.ComponentModel.IDataErrorInfo.this[string columnName]
		{
			get
			{
				if (string.IsNullOrEmpty(columnName))
					return string.Empty;

				var retval = GetObjectPropertyDataErrorInfo(columnName);
				if (string.IsNullOrEmpty(retval))
				{
					switch (columnName.ToLower())
					{
						case "text":
							if (string.IsNullOrEmpty(this.Text) || string.IsNullOrEmpty(this.Text.Trim()))
								retval = "Text is required!";
							break;
						default:
							break;
					}

				}
				return retval;
			}
		}
		#endregion

	}

}

